import React from 'react';
import ReactDOM from 'react-dom/client';
import "./style/animat.scss";
import "./style/app.scss";
import App from './App.jsx';
import reportWebVitals from './reportWebVitals';
import './assets/font/iconfont.css'
import 'moment/locale/zh-cn';
import locale from 'antd/es/locale/zh_CN';
import { ConfigProvider,theme } from 'antd';
import 'dayjs/locale/zh-cn';
import dayjs from 'dayjs';
import RScaleScreen from 'r-scale-screen'
import "./style/reset.antd.css";

dayjs.locale('en');
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <ConfigProvider locale={locale}
    theme={{
      algorithm: theme.darkAlgorithm,
    }}
    >
      <RScaleScreen height={1080} width={1920}>
        <App />
      </RScaleScreen>

    </ConfigProvider>

  </React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
